package cn.fayang.org.domain;

import cn.fayang.basic.domain.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain {


    private String sn;
    private String name;

    private List<Department> children = new ArrayList<>();
    //部门的上级分类层级id
    @ApiModelProperty("部门的上级分类层级id")
    private String dirPath;
    private Integer state;
    private Long manager_id;
    private Employee manager;//部门管理员

    private Long parent_id;
    private Department parent;//上级部门
    private Long shop_id;
}
